{{-- PAGINATION --}}
@if ($pagination && $pagination['total_page'] > 1)
<div class="pagination"><ul>
@for($i=1;$i<=$pagination['total_page'];$i++)
  <li {{ $i==$pagination['page'] ? 'class="active"' : '' }}><a href="{{ URL::current() }}?page={{$i}}&perpage={{$pagination['perpage']}}">{{ $i }}</a></li>
@endfor
</ul></div>
@endif
